package com.xyf.sys.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Author R-H
 * @Date 2024/3/101639
 * @Description
 */
@Data
@ApiModel
public class OrderPaymentSummary {

    @ApiModelProperty("总计")
    private BigDecimal total;

    @ApiModelProperty("收款总计")
    private BigDecimal paymentTotal;

    @ApiModelProperty("退款总计")
    private BigDecimal refundTotal;

    @ApiModelProperty("日期")
    private String paymentDate;

    @ApiModelProperty("收款次数")
    private Long paymentTimes;

    @ApiModelProperty("退款次数")
    private Long refundTimes;

    public BigDecimal getTotal() {
        return total == null ? BigDecimal.ZERO : total;
    }

    public Long getPaymentTimes() {
        return paymentTimes == null ? 0L : paymentTimes;
    }

    public Long getRefundTimes() {
        return refundTimes == null ? 0L : refundTimes;
    }

    public BigDecimal getPaymentTotal() {
        return paymentTotal == null ? BigDecimal.ZERO : paymentTotal;
    }

    public BigDecimal getRefundTotal() {
        return refundTotal == null ? BigDecimal.ZERO : refundTotal;
    }
}
